import axios from "axios"
import ordersUrls from "../../urls/order/orders"

export default {
  // 获取所有品牌
  fetchGetOrdersByPage (params) {
    return axios.post(ordersUrls.getOrdersByPage, params)
  },
  // 更新订单状态
  fetchChangeOstate (oid, ostate) {
    return axios.post(ordersUrls.changeOstate + "?oid=" + oid + "&ostate=" + ostate)
  },
  // 根据订单id获取订单详情
  fetchGetOrdersDetaileById (oid) {
    return axios.post(ordersUrls.getOrdersDetaileById + "?oid=" + oid)
  }
}
